//
//  KYCheckInOverallDataModel.m
//  KYCheckInSDK
//
//  Created by 罗新 on 2017/11/4.
//  Copyright © 2017年 KuaiYan  Co.,LTD. All rights reserved.
//

#import "KYCheckInOverallDataModel.h"

@implementation KYCheckInOverallDataModel

+ (instancetype)checkInOverallDataModelWithDict:(NSDictionary *)dic{
    KYCheckInOverallDataModel *model = [[KYCheckInOverallDataModel alloc] init];
    model.signNum = dic[@"signNum"];
    model.retainDrawNumber = model.signNum.integerValue;
    return model;
}

- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.signNum forKey:@"signNum"];
    [aCoder encodeInteger:self.retainDrawNumber forKey:@"retainDrawNumber"];
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self.signNum = [aDecoder decodeObjectForKey:@"signNum"];
    self.retainDrawNumber = [aDecoder decodeIntegerForKey:@"retainDrawNumber"];
    return self;
}

@end
